﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 班级
/// </summary>
[SugarTable("Banji","班级")]
[SugarIndex("unique_banji_bianhao", nameof(Banji.BianHao), OrderByType.Asc, true)]
[SugarIndex("unique_banji_name", nameof(Banji.Name), OrderByType.Asc, true)]
public class Banji  : EntityBase
{
    /// <summary>
    /// 编号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "BianHao", ColumnDescription = "编号", Length = 50)]
    public string BianHao { get; set; }
    
    /// <summary>
    /// 班级名称
    /// </summary>
    [SugarColumn(ColumnName = "Name", ColumnDescription = "班级名称", Length = 50)]
    public string? Name { get; set; }
    
    /// <summary>
    /// 班主任
    /// </summary>
    [SugarColumn(ColumnName = "BzrId", ColumnDescription = "班主任")]
    public long? BzrId { get; set; }
    
    /// <summary>
    /// 学段
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Xueduan", ColumnDescription = "学段")]
    public int Xueduan { get; set; }
    
    /// <summary>
    /// 级
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Ji", ColumnDescription = "级")]
    public int Ji { get; set; }
    
    /// <summary>
    /// 班号
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Bh", ColumnDescription = "班号")]
    public int Bh { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Beizhu", ColumnDescription = "备注", Length = 32)]
    public string? Beizhu { get; set; }
    
    /// <summary>
    /// 是否毕业
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "IsGraduated", ColumnDescription = "是否毕业")]
    public bool IsGraduated { get; set; }
}
